<?php
/**
 * Short description for file
 *
 * Long description for file (if any)...
 *
 * LICENSE: Eclipse Public License 1.0
 *
 * @category   Metis
 * @package    Metis
 * @copyright  2009 Darryl Patterson <widgetapps@gmail.com>
 * @license    http://metis.widgetapps.ca/license   Eclipse Public License 1.0
 * @version    $Id:$
 * @link       http://code.google.com/p/widgetapps-metis/
*/

class Metis_Application extends Zend_Application
{
	function __construct()
	{
		if (!isset($_SERVER['APPLICATION_ENV']) || !isset($_SERVER['APPLICATION_PATH'])){
			throw new Exception('Apache config path missing.');
		}
		
		parent::__construct($_SERVER['APPLICATION_ENV'], $_SERVER['APPLICATION_PATH'] . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'application.xml');
		
		Zend_Session::start();
	}
}